package drds.server.server.sqlcmd;

import drds.server.datasource.IConnectionHolder;
import drds.server.server.Session;

/**
 * sql command like set xxxx ,only return OK /Err Pacakage,can't return restult
 * set
 * 
 * 
 * 
 */
public interface SQLCtrlCommand {

	boolean isAutoClearSessionCons();

	boolean releaseConOnErr();

	boolean relaseConOnOK();

	void sendCommand(Session session, IConnectionHolder con);

	/**
	 * 收到错误数据包的响应处理
	 */
	void errorResponse(Session session, byte[] err, int total, int failed);

	/**
	 * 收到OK数据包的响应处理
	 */
	void okResponse(Session session, byte[] ok);

}
